package com.demo.crm.springboot3security.service;

import java.util.List;

import com.demo.crm.springboot3security.entity.User;
import com.mybatisflex.core.paginate.Page;

public interface UserService {
    User createUser(User user);

    User findByUsername(String username);

    User findById(Long id);

    List<User> findAll();

    User updateUser(User user);

    void deleteUser(Long id);

    boolean existsByUsername(String username);

    User save(User user);

    void delete(Long id);

    Page<User> findByPage(int pageNumber, int pageSize);
}